package com.ljl.org.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.ljl.basic.domain.BaseDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain {

  private String sn;
  private String name;
  private String dirPath;
  private Long state;
  private Long manager_id;
  private Long parent_id;

  private Employee manager;
  private Department parent;
  @JsonInclude(JsonInclude.Include.NON_EMPTY)
  private List<Department> children = new ArrayList<>();

}
